import {
	loginApi,
	setUserInfoAPI
} from '@/apis/user.js';

function loginPassword(info, successCallback, errCallback) {
	// 此时需要您的接口返回个人信息
	loginApi(info).then(res => {
		successCallback && successCallback(res)
	}, err => {
		errCallback && errCallback(err)
	});
}

function setUserInfo(info, successCallback, errCallback) {
	// 此时需要您的接口返回个人信息
	setUserInfoAPI(info).then(res => {
		successCallback && successCallback(res)
	}, err => {
		errCallback && errCallback(err)
	});
}

export {
	loginPassword,
	setUserInfo
}